package utils;

import uci.rt.ccr1c.engine.matrix.Mat;

public class Nan
{
	public static void main(String[] args) throws Exception
	{
		double[][] res = new double[2][2];

		res[0][0]= Double.NaN;
		res[0][1]= Double.NEGATIVE_INFINITY;
		res[1][0]= Double.POSITIVE_INFINITY;
		res[1][1]= 42;
		
		Mat resMat = new Mat(res);
		resMat.writeAsCsvFile("testNAN.csv", ",");
		resMat.writeArray("testNAN.bin");
		Mat pippo = Mat.readFromCsvArray("", "testNAN.csv", 2, 2, ",");
		Mat pluto = Mat.readArray("", "testNAN.bin", 2, 2);
		System.out.println(pippo);
		System.out.println(pluto);
	}
}
